package cn.bird.storm.component.sensitive;

import com.fasterxml.jackson.databind.module.SimpleModule;
import lombok.RequiredArgsConstructor;

/**
 * 要注册的module
 */
@RequiredArgsConstructor
public class SensitiveFieldProcessModule extends SimpleModule {


    @Override
    public void setupModule(SetupContext setupContext) {
        super.setupModule(setupContext);
        setupContext.addBeanSerializerModifier(new SensitiveFieldModifier());
    }
}
